import request from "@/utils/request"

const perfix = "/menu";


export const findNodes = () => {
  return request({
    url: `${perfix}/findNodes`,
    method: 'get'
  })
}

export const removeById = (id) => {
  return request({
    url: `${perfix}/remove/${id}`,
    method: "delete"
  })
}


export const save = (sysMenu) => {
  return request({
    url: `${perfix}/save`,
    method: "post",
    data: sysMenu
  })
}


export const updateById = (sysMenu) => {
  return request({
    url: `${perfix}/update`,
    method: "put",
    data: sysMenu
  })
}